package com.lenovo.nova.widget.dialog.buildview;

import android.app.Activity;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public interface DialogFragmentBuilder {
	void onCreate(Bundle savedInstanceState);
	void setView(View v);
	Dialog onCreateDialog(Bundle savedInstanceState);
	View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState);
	void onAttach(Activity activity);
	void onDetach();
	/**
	 * @param which Which button to set the message for, can be one of
     *            {@link DialogInterface#BUTTON_POSITIVE},
     *            {@link DialogInterface#BUTTON_NEGATIVE}, or
     *            {@link DialogInterface#BUTTON_NEUTRAL}
	 * @param l
	 */
	void setButton(int which,CharSequence msg, OnClickListener l);
	
	void setTitle(CharSequence title);
	
	void setMessage(CharSequence message);

	void onActivityCreated(Bundle savedInstanceState);
}